import Request from '@/apis/index'
/**
 * @desc: 获取数据
 */
export function getCollectList(params?: object) {
    return Request.get({
        url: '/admin/document/collect',
        method: 'GET',
        params: params
    })
}
/**
 * @desc: 删除
 */
export function deleteCollectData(id?: number) {
    return Request.delete({
        url: "/admin/document/collect",
        method: "DELETE",
        params: { indexId: id },
    })
}
/**
 * @desc: 新增数据
 */
export function newCollectData(data: Object) {
    return Request.post({
        url: "/admin/document/collect",
        method: "POST", 
        data: data,
    })
}
/**
 * @desc: 修改
 */
export function editCollectData(data: Object) {
    return Request.put({
        url: "/admin/document/collect",
        method: "PUT", 
        data: data,
    })
}